#include "WorkingDialog.h" int SaSetDefaults(char *server, char *db);
server
db
0
for success, or a -1 for failure.SaSetDefaults
is used in clients generated by Sapphire/Web only. It allows the client to use a default server and database at run-time regardless of what was hard-coded in at design/compile time.
SaSetUseDefaultFlag
must be called before SaSetDefaults
, or the defaults will not be set.
All requests, regardless of the vendor, will use the same server and database specified by SaSetDefaults
.
SaSetDefaults
can be called multiple times if changing the defaults is desirable.
SaSetUseDefaultFlag
for a code example.